<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><%= @title %></title>
		<%= javascript_include_tag :defaults%>
		<%= stylesheet_link_tag "basic.css"%>
	</head>
	<body>
		<script type="text/javascript">
			$(function(){
				var $pathname = window.location.pathname;
				$('#requirement_home div.require_left_side li a').each(function(){
					var $href = $(this).attr('href');
					if( ($href== $pathname) || ($href=='') ){
						$(this).addClass('current');
					}else{
						$(this).removeClass('current');
					}
				});
			});
		</script>
		<div id="container">
			<%= render :partial => "/partial/top" %>
			<%= render :partial => "/partial/head" %>
			<div id="requirement_home">
            	<div class="addresses">
                     当前位置：<%= link_to "分度网", SITE%>&gt;
					 <%= link_to "创意需求", :action => :index, :controller =>"site/requirement" %>
              	</div>
              	<div class="require_left_side">
                	<div class="sort">
                    	<p>需求分类</p>
                        	<ul>
                            	<%retypes=Retype.find(:all)%>
                            	<%retypes.each do |r| -%>
									<li><%= link_to r.name, search_for(:id => r.level)%></li>
								<% end %>                                
                            </ul>
                      </div>
                </div>
				<div class="right_side">
					<div class="sidebar_box" id="product_design">
						<%= render :partial => 'requirements', :locals => { :requirements => @products, :text => "产品设计" }%>
					</div>              
					<div class="sidebar_box" id="brand_design">
						<%= render :partial => 'requirements', :locals => { :requirements => @brands, :text => "品牌设计" }%>
					</div>              
					<div class="sidebar_box" id="vi_design">
						<%= render :partial => 'requirements', :locals => { :requirements => @vis, :text => "VI设计" }%>
					</div>
				</div>
            </div>
			<div id="footer">
				<ul>
				    <li><a href="#">关于分度</a></li> 
			        <li><a href="#">服务指南</a></li>
			        <li><a href="#">网站导航</a></li>
					<li><a href="#">诚聘英才</a></li>
				    <li><a href="#">战略伙伴</a></li>
				    <li><a href="#">联系我们</a></li>
				</ul>
		  	</div>
  
			<div id="dibu">电信经营许可证号 广告经营许可证号 工商注册登记号
				<br/> COPYRIGHT@2008年-2009年 FENDU . ALL RIGHTS RESERVED
			</div>
		</div>
	</body>
</html>